<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box">
        <div v-show="xShow">我是一个div</div>
    </div>
    <script src="js/vue.js"></script>
    <script>
        let vm = new Vue({
            el:"#box",
            data:{
                xShow:true
            }
        })
    </script>
    <!-- 
        作用：控制显示和隐藏
        v-show ： 设置display来控制显示和隐藏
    -->
</body>
</html>